package cn.cjp.m3d21;
//外部类
public class Neibulei1 {

    public class Neibulei11{
        public void main(String[] args) {
            //内部类随意调用外部类的内容
            System.out.println(name);
        }

        public void method1(){
            System.out.println("内部类的方法");
        }
    }

    private String name = "哈哈哈";

    public void method2(){
        new Neibulei11().method1();
    }

}
